<?
	require_once("class.paymentprocessor.php");
	class StormPay extends PaymentProcessor
	{
		var $merchant_email;
		
		//
		// Constructor
		//
		function StormPay($merchant_email)
		{
			$this->merchant_email = $merchant_email;
		}
		
		
		function ProccessSinglePayment()
		{
			$retval = $this->input['status'] == "SUCCESS" && $this->input['payee_email'] == $this->merchant_email;
			
			// Log 
			if (!$retval)
			{
				$this->Log("Error while proccessing StormPay payment");
				$this->Log($this->input);
			}
			
			return $retval;
		}
		
	}
?>